﻿<%@ control language="VB" autoeventwireup="false" inherits="controls_Beneficiario, App_Web_vfbk0y9u" %>
<table width="650">
    <tr>
        <td style="height: 30px" class="footerItem">
            <asp:Label ID="lblTituloBeneficiario" runat="server" Font-Bold="True" ForeColor="White"
                Text="Datos del beneficiario"></asp:Label></td>
    </tr>
    <tr align="center">
        <td align="center">
            <table border="0" width="100%">
                <tr id="trBigDetails" runat="server">
                    <td valign="top" width="70%">
            <table width=100% border="0">
                <tr>
                    <td width=30% align="left" class="LeftCellItems">
                        Nombre</td>
                    <td>
                        <asp:TextBox ID="txtNombre" runat="server" Width="99%" MaxLength="40"></asp:TextBox></td>
                </tr>
                <tr>
                    <td align="left" class="LeftCellItems">
                        Apellidos</td>
                    <td>
                        <asp:TextBox ID="txtApellidos" runat="server" Width="99%" MaxLength="40"></asp:TextBox></td>
                </tr>
                <tr id="trDireccionBenef" runat="server">
                    <td align="left" class="LeftCellItems">
                        Direccion</td>
                    <td>
                        <asp:TextBox ID="txtDireccionBn" runat="server" Width="99%" MaxLength="50"></asp:TextBox></td>
                </tr>
                <tr id="trBarrioBenef" runat="server">
                    <td align="left" id="tdBarrio" class="LeftCellItems">
                        Barrio</td>
                    <td>
                        <asp:TextBox ID="txtBarrioBn" runat="server"  Width="99%" MaxLength="50"></asp:TextBox></td>
                </tr>
                <tr>
                    <td align="left" class="LeftCellItems">
                        Pais
                        </td>
                    <td>
                        <asp:DropDownList ID="cmbPais" runat="server" Width="100%" AutoPostBack="True">
                        </asp:DropDownList></td>
                </tr>
                <tr>
                    <td align="left" class="LeftCellItems">
                        Ciudad</td>
                    <td>
                        <asp:DropDownList ID="cmbCiudad" runat="server" Width="100%">
                        </asp:DropDownList></td>
                </tr>
                <tr id="trTelefonosBenef" runat="server">
                    <td align="left" class="LeftCellItems">
                        Telefonos</td>
                    <td align="left">
                        <table width="100%" cellpadding="0" cellspacing="0">
                            <tr>
                                <td style="width: 50%" align="left">
                                    <asp:TextBox ID="bnTelefono1" runat="server" Width="90%" MaxLength="16"></asp:TextBox></td>
                                <td style="width: 50%" align="right">
                                    <asp:TextBox ID="bnTelefono2" runat="server" Width="90%" MaxLength="16"></asp:TextBox></td>
                            </tr>
                        </table>
                    </td>
                </tr>
                <tr id="trBanco" runat="server">
                    <td align="left" class="ListsItems">
                        Banco</td>
                    <td>
                        <asp:DropDownList ID="cmbBanco" runat="server" Width="100%">
                        </asp:DropDownList></td>
                </tr>
                <tr id="trSucursal" runat="server">
                    <td align="left" class="ListsItems">
                        Sucursal</td>
                    <td>
                        <asp:TextBox ID="txtSucursal" runat="server" Width="99%" MaxLength="20"></asp:TextBox></td>
                </tr>
                <tr id="trCiudadCuenta" runat="server">
                    <td align="left" class="ListsItems">
                        Ciudad</td>
                    <td>
                        <asp:TextBox ID="txtSucursalCiudad" runat="server" MaxLength="20" Width="99%"></asp:TextBox></td>
                </tr>
                <tr id="trTipoCuenta" runat="server">
                    <td align="left" class="ListsItems">
                        Tipo cuenta</td>
                    <td>
                        <table width="100%" cellpadding="0" cellspacing="0">
                            <tr>
                                <td style="width: 40%; height: 24px;" align="left">
                                    <asp:DropDownList ID="cmbTipoCuenta" runat="server">
                                    </asp:DropDownList></td>
                                <td align="right" style="width: 20%">
                                    Cuenta: </td>
                                <td style="width: 40%;" align="right">
                                    <asp:TextBox ID="txtCuenta" runat="server" Width="90%" MaxLength="30"></asp:TextBox></td>
                            </tr>
                        </table>
                    </td>
                </tr>
                <tr>
                    <td>
                    </td>
                    <td>
                    </td>
                </tr>
                <tr id="trBotoneraGuardarBenef" runat="server">
                    <td>
                    </td>
                    <td>
                        <asp:Button ID="cmdCancelarBnP1" runat="server" CssClass="Butt" Text="Cancelar" />
                        <asp:Button ID="cmdNuevoBnp1" runat="server" CssClass="Butt" Text="Continuar..." />
                        <asp:Button ID="cmdNuevoBnp2" runat="server" Text="Guardar Datos" CssClass="Butt" ToolTip="Guarda los datos del beneficiario" /></td>
                </tr>
                <tr id="trBotoneraCuenta" runat="server">
                    <td>
                    </td>
                    <td>
                        <asp:Button ID="cmdCancelarCuenta" runat="server" CssClass="Butt" Text="Cancelar" ToolTip="Cancelar edicion de cuentas" />
                        <asp:Button ID="cmdGuardarCuenta" runat="server" CssClass="Butt" Text="Guardar Datos" ToolTip="Guarda los datos de la cuenta bancaria" /></td>
                </tr>
                <tr id="trButtonAddCuenta" runat="server">
                    <td>
                    </td>
                    <td>
                        <asp:Button ID="cmdAgregarCuenta" runat="server" CssClass="Butt" Text="Agregar cuenta"
                            ToolTip="Pulse para agregar una nueva cuenta banacaria" /></td>
                </tr>
            </table>
                    </td>
                    <td align="center" valign="top">
                        <asp:Image ID="imgFlag" runat="server" Height="20px" Width="28px" /><br />
            <asp:Label ID="lblInstruccionesBeneficiario" runat="server" Font-Bold="False"></asp:Label></td>
                </tr>
                <tr id="trListaCuentas" runat="server">
                    <td valign="top" width="70%" id="tdListaCuentas" runat="server">
                        <asp:GridView ID="gvCuentas" runat="server" AutoGenerateColumns="False" UseAccessibleHeader="False"
                            Width="100%" CellPadding="0" ForeColor="#333333" GridLines="None">
                            <Columns>
                                <asp:BoundField HeaderText="Banco" DataField="cb_Banco" >
                                    <ItemStyle HorizontalAlign="Left" />
                                    <HeaderStyle HorizontalAlign="Left" />
                                </asp:BoundField>
                                <asp:BoundField HeaderText="Sucursal" DataField="cb_Sucursal" />
                                <asp:BoundField HeaderText="Tipo Cuenta" DataField="cb_TipoCuenta" />
                                <asp:TemplateField HeaderText="Cuenta">
                                    <ItemStyle HorizontalAlign="Right" />
                                    <HeaderStyle HorizontalAlign="Right" />
                                    <ItemTemplate>
                                        <asp:LinkButton ID="LinkButton2" runat="server" CommandArgument='<%# bind("cb_Id") %>'
                                            Text='<%# bind("cb_Cuenta") %>' ToolTip='<%# "Pulse para modificar cuenta" %>'></asp:LinkButton>
                                    </ItemTemplate>
                                </asp:TemplateField>
                            </Columns>
                            <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                            <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
                            <EditRowStyle BackColor="#999999" />
                            <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
                            <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
                            <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                            <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
                        </asp:GridView>
                    </td>
                    <td align="center" valign="top">
                    </td>
                </tr>
            </table>
        </td>
    </tr>
    <tr id="trSepara" runat="server">
        <td>
        </td>
    </tr>
    <tr id="tdListaEncontrados" runat="server">
        <td style="height: 21px" align="center">
            <asp:GridView ID="gvBnf" runat="server" Width="100%" CellPadding="3" ForeColor="Black" GridLines="Vertical" AutoGenerateColumns="False" BackColor="White" BorderColor="#999999" BorderStyle="Solid" BorderWidth="1px">
                <FooterStyle BackColor="#CCCCCC" />
                <SelectedRowStyle BackColor="#000099" Font-Bold="True" ForeColor="White" />
                <PagerStyle BackColor="#999999" ForeColor="Black" HorizontalAlign="Center" />
                <HeaderStyle BackColor="Black" Font-Bold="True" ForeColor="White" />
                <AlternatingRowStyle BackColor="#CCCCCC" />
                <Columns>
                    <asp:TemplateField ShowHeader="False">
                        <ItemStyle HorizontalAlign="Left" />
                        <ItemTemplate>
                            <asp:LinkButton ID="LinkButton1" runat="server" CausesValidation="False" CommandArgument='<%# bind("BnfNumero") %>'
                                CommandName="Vincular" Text="Vincular"></asp:LinkButton>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:BoundField DataField="Beneficiario" HeaderText="Nombres">
                        <ItemStyle HorizontalAlign="Left" />
                    </asp:BoundField>
                    <asp:BoundField DataField="BnfDireccion" HeaderText="Direccion">
                        <ItemStyle HorizontalAlign="Left" />
                    </asp:BoundField>
                    <asp:BoundField DataField="BnfBarrio" HeaderText="Barrio">
                        <ItemStyle HorizontalAlign="Left" />
                    </asp:BoundField>
                    <asp:BoundField DataField="BnfTel&#233;fono" HeaderText="Telefono">
                        <ItemStyle HorizontalAlign="Left" />
                    </asp:BoundField>
                </Columns>
            </asp:GridView>
        </td>
    </tr>
    <tr>
        <td>
        </td>
    </tr>
    <tr>
        <td>
            <asp:Label ID="lblError" runat="server" BackColor="Red" ForeColor="White" Width="100%" Font-Bold="True"></asp:Label></td>
    </tr>
</table>
